import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
	mode: "history",
	routes: [{
		path: '/',
		name: 'Index',
		component: resolve => require(['../components/index.vue'], resolve),
		children: [
			{
				path: '/menulist',
				name: 'menulist',
				component: resolve => require(['../components/system/menulist.vue'], resolve)
			},{
				path: '/rolelist',
				name: 'rolelist',
				component: resolve => require(['../components/system/rolelist.vue'], resolve)
			},{
				path: '/personpermissionlist',
				name: 'personpermissionlist',
				component: resolve => require(['../components/system/personpermissionlist.vue'], resolve)
			}
		]
	},
		{
			path: '/login',
			name: 'Login',
			component: resolve => require(['../components/Login.vue'], resolve)
		}
	]
})

